package cn.lcsjsxy.yxz.comprehensiveexercises1;

public class Test {

    //5.14
    //创建-个Customer ，名字叫Jane Smith,
    // 他有一个账号为1000，余额为2000元，年利率为1.23%的账户。
    // (2)对Jane Smith操作。存入10日 元，再取出960元。再取出2000元。
    //打印p出Jane Smith 的基本信息

    public static void main(String[] args) {

        Customer cust = new Customer("Jane", "Smith");

        Account acct = new Account(1000, 2000, 0.0123);

        cust.setAccounte(acct);

        cust.getAccounte().deposit(100);
        cust.getAccounte().withdraw(960);
        cust.getAccounte().withdraw(2000);

        //输出基本信息
        /*System.out.println("Customer[" + cust.getLastName() + "," + cust.getLastName() + "] has a account: id is " + cust.getAccounte().getId() +
                ",annualinterestRate is " + cust.getAccounte().getAnnualinterestRate() * 100 + "%,balance is " + cust.getAccounte().getBalance());*/

    }


}
